package cs.uns.edu.ar.aygps.view;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Map;

import javax.swing.JDesktopPane;
import javax.swing.JInternalFrame;

@SuppressWarnings("serial")
public class AGPSInternalFrame extends JInternalFrame implements ActionListener{
	
	public static JDesktopPane pane;
	protected Map<String, Object> modelData;

	public AGPSInternalFrame(JDesktopPane p) {
		pane = p;
		init();
	}

	public void init() {
		this.setBounds(pane.getX(), pane.getY(), pane.getWidth(), pane.getHeight());
		this.setVisible(true);
		this.setEnabled(true);
		this.setMaximizable(true);
		this.setIconifiable(true);
		this.setClosable(true);	
		this.setResizable(true);
		initGUI();
		pane.add(this);
	}

	/*All subclasses should override this method other initializing class-specific
	 * content (buttons, text, labels,etc)
	 */
	public void initGUI() {
				
	}

	public void actionPerformed(ActionEvent e) {		
		
	}

	public Map<String, Object> getModelData() {
		return modelData;
	}

	public void setModelData(Map<String, Object> modelData) {
		this.modelData = modelData;
	}
	
	
}
